<template>
  <div class="loading" @click="closeLoading()"></div>
</template>

<script>
export default {
  methods: {
    closeLoading() {
      this.$store.state.nowLoading = false;
    },
  },
};
</script>

<style lang="scss" scoped>
.loading {
  position: absolute;
  top: 0;
  z-index: 2000;
  width: 100vw;
  height: 100vh;
}
</style>